Feature: become a member
  In order to use the website 
  As a User
  I want login in order to become a member

  @login_valid
  Scenario: Login as Member using a given email and password
    Given the following user record
    |firstname|lastname|surname|login|email| password|password_confirmation| role |
    |user|user|user|user|user@sad.com|user1234|user1234|member|
    |member|member|member|member|member@sad.com|user1234|user1234|member|
    And I login as "member" with password "user1234"
    Then I should see "You are login as member member"

  @login_invalid
  Scenario: Login as Member using a given email and password
    Given the following user record
    |firstname|lastname|surname|login|email| password|password_confirmation| role |
    |user|user|user|user|user@sad.com|user1234|user1234|member|
    |member|member|member|member|member@sad.com|user1234|user1234|member|
    And I login as "" with password ""
    Then I should see "Unsucessfully to login"